<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>输入8位整数，反转再相加</title>
	</head>
	<body>
		<script type="text/javascript">
			let n = 12345678;
			function sum(num) {
				let s = num + "";
				s = s.split("").reverse().join("");
				return n + +s;
			}
			console.log(sum(n));
		</script>
	</body>
</html>
